package com.hwg.shiliupro.dto;

import lombok.Data;

import java.util.List;

@Data
public class PageBean<T> {
    //总记录条目数
    private Integer totalCount;
    //当前页数据
    //等到创建PageBean对象再去指定泛型
    private List<T> rows;

    public PageBean() {
    }

    public PageBean(Integer totalCount, List<T> rows) {
        this.totalCount = totalCount;
        this.rows = rows;
    }
}
